package com.company;

import com.company.Flyer;
import com.company.Image;

/**
 * Created by v on 17-7-9.
 *
 * 飞机类，用来打的
 */
public class Plane extends Flyer{
    private static int speed=3;

    public Plane(int x,int y){
        this.x=x;
        this.y=y;
        image= Image.airplane;
        this.width=image.getWidth();
        this.height=image.getHeight();
    }

    @Override
    public void step() {
        y+=speed;
    }

    @Override
    public boolean outOfBound() {
        return y>Main.HEIGHT;
    }

    //获取分数
    public static int getScore(){
        return 5;
    }
}
